package com.zhuangjie.user.feign;

import com.zhaungjie.base.conduit.TypeR;
import com.zhuangjie.base.constant.ModuleSecurityNames;
import com.zhuangjie.coupon.vo.ValidCouponCount;
import com.zhuangjie.security.annotations.PublicAPI;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(name= "spark-coupon",path = "/coupon")
public interface CouponFeignService {

    @GetMapping("/coupon/valid-coupon-count")
    @PublicAPI(modules = {ModuleSecurityNames.USER})
    TypeR<ValidCouponCount> validCouponCount();
}
